<?php defined('SYSPATH') or die('No direct script access.');
/**
 * Database query builder for INSERT statements.
 *
 * @package    DBUtil
 * @author     Oliver Morgan
 */
class Kohana_Database_Query_Builder_Drop extends Database_Query_Builder {
	
	protected $_table = NULL;
		
	public function __construct($table)
	{
		$this->_table = $table;
		
		return parent::__construct(Database::DROP, '');
	}
	
	public function compile(Database $db)
	{
		return 'DROP TABLE '.$db->quote_table($this->_table);
	}
	
	public function reset()
	{
		$this->_table = NULL;

		return $this;
	}
}